import Request from "../util/request"

export const addAdminRequest = (data) => {
    return Request.post("/addAdmin", data)
}
export const findAdminRequest = () => {
    return Request.get("/adminList")
}
export const deleteAdminRequest = (adminName) => {
    return Request.delete("/deleteAdmin", {
        params: {
            adminName,
        }
    })
}
export const isLoginRequest = () => {
    return Request.get("/islogin")
}
export const loginOutRequest = () => {
    return Request.get("/loginOut")
}